package a.client.lib_common.net

import a.client.lib_common.net.api.ApiBaiDuTranslationService
import a.client.lib_common.net.api.ApiCommonService

/**
@author:jacky
@Date:2021/1/19
 **/
object NetRequest {

    // 公共接口
    val commonService by lazy(mode = LazyThreadSafetyMode.NONE) {
        NetServiceCreator.create(ApiCommonService::class.java)
        NetServiceCreator
    }

    // 百度翻译接口
    val translationService by lazy(mode = LazyThreadSafetyMode.NONE) {
        NetServiceCreator.createBaiDu(ApiBaiDuTranslationService::class.java)
    }
}